]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Re-add special-casing of evolution-calendar
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 23 Mar 2013 08:29:34 +0000 (09:29 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 25 Mar 2013 09:43:30 +0000 (10:43 +0100)
When commit 724a2bd7 changed the way to determine the default
calendar app, it dropped all special handling of evolution.
Unfortunately we still need it to not end up with the default
mail component, so add it back.

https://bugzilla.gnome.org/show_bug.cgi?id=696432

js/ui/dateMenu.js

index abd7da4f25d75bee0329b9555ade9f438b6e1c15..acb0418918572984b6957cd183916c74126520f5 100644 (file)
@@ -221,6 +221,8 @@ const DateMenuButton = new Lang.Class({
         this.menu.close();
 
         let app = Gio.AppInfo.get_default_for_type('text/calendar', false);
+        if (app.get_id() == 'evolution')
+            app = Gio.DesktopAppInfo.new('evolution-calendar');
         app.launch([], global.create_app_launch_context());
     },